﻿@page "/"
@using Messhall.HostService.Proxy
@using Messhall.HostService.Interface.Permission
@using Console = System.Console

<h1>Hello, world!</h1>

Welcome to your new app.

<SurveyPrompt Title="How is Blazor working for you?" />


@code {

    protected override async Task OnInitializedAsync()
    {
        var userService = ServiceFactory.Create<IUsers>();
        ////var result1 = await userService.Get();
        //var result = await userService.CreateAsync(new()
        //    {
        //        AccountNo = "123",
        //        Name = "smh",
        //        Mobile = "15606517517",
        //        Money = 123,
        //        IsVip = false,
        //        PassWord = "123456"
        //    });

        //Console.WriteLine(result);

        await base.OnInitializedAsync();
    }

}